package cn.yy.aop.util;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
@Service("myAop")
public class MyHandler {

	
	
	public void before(){
		System.out.println("代理执行前置--穿上衣物");
		System.out.println("核心业务开始。。。。。。。。。。");
	}
	
	public void after(){
		System.out.println("核心业务结束了。。。。。。。。。");
		System.out.println("代理执行后置认为--脱衣物");
	}

//	public Object invoke(Object proxy, Method method, Object[] args)
//			throws Throwable {
//		// TODO Auto-generated method stub
//		before();
//		Object value=method.invoke(target, args);
//		after();
//		return value;
//	}

}
